<?php

require_once('lib/HimaShare.php');

{ # get self
    $me = HimaShare::get_member(1259310);
    if ($me) die('me must not set');

    $me = HimaShare::get_member(22706276);
    if (!$me) die('me must set');
}

{ # get optin friends
    $friends = HimaShare::get_friends(1259310);
    if (!count($friends)) die('must have all friends');

    $friends = HimaShare::get_friends(25840593);
    if (!count($friends)) die('must have all friends');
}

{ # get all friends
    $friends = HimaShare::get_all_friends(1259310);
    if (!count($friends)) die('must have all friends');

    $friends = HimaShare::get_all_friends(22706276);
    if (!count($friends)) die('must have all friends');
}
